filename = raw_input(">")

o = open("out.txt","w") #open for write
for line in open( filename ):
	line = line.replace("&","&amp;")
	line = line.replace(">","&gt;")
	line = line.replace("<","&lt;")
	o.write(line) 
o.close()